package com.heima.test2;

public class Book {
    private String name;
    public static int count;

    public Book(String name) {
        this.name = name;
        count++;
    }

    public Book() {
        count++;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
